clean up pulled code; selector tests; refactor selector for better performance & fix some bugs; fix docs not generating subheadings; improve binding performance