proofreading and added documentation