Refactoring code, adding some comments and some code clean up.