Fixed setpoints error in main, added scripts