removed unneeded functions, added docs