minor cleanup

cleaned up spaces
fixed some debug output using console object