Fixed minor bugs in tutorials and increased compatibility of plotting tool.