Fixed syntax issues, added feature to clear between runs