fixed output formatting and added some comments