Work on STK500v1:

 * Added/modified javadoc on several methods
 * Added check for entering and leaving programming mode in constructor