added while loop in setup to wait for Serial to be ready

(needed by Leonardo-style boards)