API Update

Added easy API functions and file and some description in the beginning
of all php files.