Fix for issue with casting floats.
Handling of volatile qualifier, more refactorings.