Fixe bugs, made intermediate directories and added qiime ready headers