Created a class. new options added, see updated README.md