Wrapped the Parser in a class and added documentation