cleaned up code documentation