split out functions into new files, fixed some bugs
check http response codes, fixed bugs with de novo datasets