Moved filetype validation to tomdocc.py