Refactoring anf clean up.
Merge branch 'master' of https://github.com/nitishsrivastava/deepnet