caps
fix C++11
fix float vs. double
caps