delete whitespace
move doc string to correct location