fixed some crash and memory leaks in abnormal cases
don't try to process non-compatible tags
remove .DS_Store
Merge pull request #4 from Kontinuation/master

Minor fixes on exceptional cases