Fixed #elif
Styled code
Exported more symbols
Cleanup of Exceptions to be more uniform and helpful

Cleaned up various exceptions to use the marco BOOST_CURRENT_FUNCTION where necessary,
Changed Exception to NullPointerException where applicable, and made messages from such Exceptions more concise
Merge remote-tracking branch 'upstream/master'