breaking out functionality for views to keep things clean.  updated README.  some bug fixes