Refactor entire lib and make it objective. Split serial interface and common commands code. Make the lib build staticaly. Modified tests.
Bugs and links fixing