code tidyup - make serial lib a module