Fix to autopreview
Misc fixes
Misc fixes, lots of documentation work