Fixed clang compiler warnings and errors

Fixed unused member data warnings.
Fixed invalid use of 'd' to declare a double.