Restructuring scripts, CI and documentation