lots of bug fixes and code simplification, adds setup.py file. It now ignores dot directories. Updates readme