Add maintenance scripts: error checker, definition refresher