fix some bugs

Fixed some syntax bugs, and update requirements.txt..
@tonyseek @HxSeek