Remove lib directory before compiling

Make sure old stuff gets removed before recompiling source.
First pass at JSDoc-ing the API