Added comments and fixed spelling