clean up console.logs and errant spaces