improve some methods
Merge branch 'master' of https://github.com/JingxinZhu/COURSE_NYU-CSCI-GA.2250