more documentation, minor code updates, removed makeThreadLocal from application