made changes
added some documentation