did some work on documentation, added bibliography