re-arranged the code
fixed some issues
Merge branch 'master' of https://github.com/rahulpasunuri/networks