Documentation for updateSource and test refactoring for 'source' API functions

* updateSource is documented