Removed unnecessary comments, debugs and whitespace.