commented filesyscmds and added explanation to mkdir logic