millis example: add comments, clean code and delet unecessary files