cleaned up and added some comments