Added comments, fixed a copy/paste error

Commented lines for program purpose and serial communications. Also
deleted extra copy of function definition