added documentation on makefiles.
modified the chdir tests to include moving to the root directory.