Make the buildcode lookup more flexible.
Add DOM support.
Update docs.