Cleaned up logs added some comments