Cleaned up class definitions and implementation; Moved examples to folder