Completed: finalized code and output
small fixes
small fixes
another small fix