Remove tailing spaces
Fix typos on comments

collecter ->
collector
       ^

gethering ->
gathering
 ^

gapthering ->
gathering
  ^

instaed ->
instead
    ^^