Fixed Minimize() and improved command line parsing.