First files

Some of the basic functions