Added basic functions and restructured project.