Fix passing the arguments to the main functions
Fix couple of typoes leading to syntax error