move documentation into script