re-wrote tests (work still to do) and refactored footer