created a base for the default functions and let all api's use these basic functions
added docblocks to the Base class
Merge pull request #4 from daanvanham/extend