Fixed minor bug

Parser would not recognise negative numbers,  Double.parseDouble(elements[j]) didn't work if String contained 
"-".