updated README and moved source files into lib directory
broke out match parsing into separate methods