Added mkfs, (some bugs tto be resolved), improved code quality