requesting pull of bug fixes and performance improvements that should be merged into amaya-library

This code works on miclogin and on my mac.  The mic branch is intended to be the stable version for the code development that is happening on the mic.  All the modifications on this branch should go into the main code.

Alec