missing import os
added PULLUP, PULLDOWN and NOPULL keywords
added detachInterrupt()