small spacing edits, and bug fix