added lengthMillis(), modified pause() for returncode

thank to dnstje for the idea with bool pause(bool)