sorrel code complete w/ documentation