corrected some doctest problems
fixed a problem with 'None' returns