removed class
added class and function docs