Added developer documentation and cleanups.