Base directory

Changing the way paths are referenced.
Using some constants to help.