Clarify tps objective being used and add a test to verify that the objective is correct. Remove use of float32 in tps. Other minor bug fixes.