added documentation for API functions, bumped to version 1.0.2