Refacored Nonnull annotations for better testing. Fixed several small bugs. Added further DOM traversal methods.