Update API2.py

Added comments and descriptions for methods.