E2 site code, tools, and miscellaneous stuff