Fixed a bug which caused docgen to fail when no doctags are there and fixed a path bug