added .smug and fixed some txt parsing