added phantom and karma
updated
clean up
clean up tests and make code run
updated