more changes. updated print functions. need to get the callbacks to work