started on obj.py. Cleaned up and added new features to main