Added command line parameters and checks

Added type of payment and initial amount as input parameters
Fixed code formatting (with automated tool)