Removed debugging and extended training interfaces slightly.