updated readme with methods, fixed function instantiation