cleaned up the code and did minor fixes.