Fixed some errors and stripped off whitespaces.