acceptance test script added
a bit of refactoring , closing files