added exceptions; deprecated char_type; minor fixes