Constructor fixes. Implemented train() method. Added (useless) work() method.