cleaning up the code a bit
added sorted to get
adding directory creation
more directory functions