Added amplitude to calculation parameters
Moved double precision declaration to mtypes.h
Correct calculations
Code cleanup
Modified triangle class to use vertex array