add library files, develop functions.

- analog button definition started
- serial command interface added
- operational functions described
clean up