Fixed bug with setting wrong memory area for tag in clam_fopen

Also prettied up the switch statement