commented and cleaned up robotcode