remove default mem and added some documentation