add basic documentation; some cleanup