removed unused parameter, added some docs