Cleaned the code. Improved Output.