Model railway maker steams towards first annual profit in three years