Refactoring of integer and float details, use of C++11 integer types when available.