Moved main program code to main module (definiteIntegral is now a lib module).
Added argparse support.