Improved tree command. Added method for determing file filetypes.