adding -maxmem option to usage()