Update mainautonomous.c

Added comments.