Added basic logic structure
Added TSFile
Some new structures