Start writing developer docs. Associated code cleanup.