Handle command line arguments

Added arguments for size filter, input file, output file and help. Error message is printed if something goes wrong.