massive cleanup
redirecting unneeded output
indentation by rubymine...