minor changes

Character type handling
comments clarified
more TODO's added
exceptions
added TODO block to the top