Remove dead sgen code, update documentation