saving
added debugging, classes, and an API