document remaining functions; remove unnecessary functionality