added support for R generated graphs, documentation added, bugfixes