Updated class

- split class functions for attribute testing and printing
- updated example.py
- updated README