updates:
*add JSDoc code
*restructure code
*added better handlers for building API object from different credentials
*added better validation of dates through the instance parser