Removed Whitespace, finished comments of encode