Updated AutonomousCode() and minor changes
Merge pull request #1 from pyl676/master

Updated AutonomousCode() and minor changes