adding imports to main module
restructuring a bit, moving errors to own module
updating readme with cleaner import
more docs