API functions + documentation updated for final code cleanup and testing