Main function is correctly parsed. all cgreader specific arguments have been removed.