Second commit, new tspHCP.java with filewriting method