Reformatting of wav loading

Use float64 throughout
Move parsing of sample amplitude to file load