Added file structure and some basic functions