Some more project cleanup and functions documented