Working on Refactoring
appendEnv function complete
Makefile
Added redirection
Refactored