fixed bugs and updated comments
updated dependencies based on documentation
updated comment