Improved debug output.
Added basic logging of parameters for trained nets.