Added command arguments for threshold in apply_cmap and fixed typo