hide cast functions in detail namespace
indents
corrected example code
updated to recommended settings
separated into example and library projects