got all functions commented and tests for dol done