fixed bugs and added documentation to github pages branch