cleaned up the code format and cout statements and such...