small adjustments

created new Constructor that only takes a string
add NPE to reachedEnd() (since i got that one time and had no clue where
it happened)
Example works now