renamed functions, added docs #86