use typeof to check for boolean
updated readme for width/height/outerwidth/outerheight