Removed test cout statements and added some comments