fix code focus bug
sources wip
lots of source-saving WIP
fix document naming bug