Add more configuration options, PEP8 compatibility
Updated doc, added licence