Added getDir/setDir functions and base folders
Changed the way dirs are defined, added new parameter to getDir()
Fixed typo
Added img() function