Added removeWhiteSpace, did some commenting