use strict, added mkdir support, fixed small typos.