added some doc functionality, started creating yst dir
checks and creates yst if possible (lots of error checking)