Added more flexabilty in main for printing
Added more flexabilty in main for printing