Working on cleaning up and documenting.