Refactored docs generator, added console.logs

Previously index was never generated if lib/ folder was missing in one of the modules
v0.2.4