Index: uspace/srv/fs/minixfs/mfs.h
===================================================================
--- uspace/srv/fs/minixfs/mfs.h	(revision a04b62df2216ec041eea0f85b0a3c942714ddc86)
+++ uspace/srv/fs/minixfs/mfs.h	(revision 7a964769e46c9d5fbd46f8f723ab7389ed76e41d)
@@ -71,13 +71,15 @@
 	unsigned long zbmap_blocks;
 	unsigned long firstdatazone;
-	unsigned long itable_size;
 	int log2_zone_size;
-	int ino_per_block;
-	int dirsize;
 	int block_size;
-	mfs_version_t fs_version;
 	uint32_t max_file_size;
 	uint16_t magic;
 	uint16_t state;
+
+	/*The following fields do not exist on disk but only in memory*/
+	unsigned long itable_size;
+	mfs_version_t fs_version;
+	int ino_per_block;
+	int dirsize;
 	bool long_names;
 	bool native;
@@ -99,4 +101,5 @@
         uint32_t        i_izone[V2_NR_INDIRECT_ZONES];
 
+	/*The following fields do not exist on disk but only in memory*/
 	bool dirty;
 	fs_index_t index;
@@ -108,4 +111,5 @@
 	char d_name[MFS3_MAX_NAME_LEN];
 
+	/*The following fields do not exist on disk but only in memory*/
 	bool dirty;
 };
Index: uspace/srv/fs/minixfs/mfs_ops.c
===================================================================
--- uspace/srv/fs/minixfs/mfs_ops.c	(revision a04b62df2216ec041eea0f85b0a3c942714ddc86)
+++ uspace/srv/fs/minixfs/mfs_ops.c	(revision 7a964769e46c9d5fbd46f8f723ab7389ed76e41d)
@@ -151,4 +151,5 @@
 
 	if (check_magic_number(sb->s_magic, &native, &version, &longnames)) {
+		/*This is a V1 or V2 Minix filesystem*/
 		magic = sb->s_magic;
 		goto recognized;
@@ -161,4 +162,6 @@
 		return;
 	}
+
+	/*This is a V3 Minix filesystem*/
 
 	magic = sb3->s_magic;
@@ -250,5 +253,5 @@
 void mfs_stat(ipc_callid_t rid, ipc_call_t *request)
 {
-	mfsdebug("mfs_stat called\n");
+	mfsdebug("mfs_stat()\n");
 	libfs_stat(&mfs_libfs_ops, mfs_reg.fs_handle, rid, request);
 }
@@ -260,5 +263,5 @@
 	struct mfs_instance *instance;
 
-	mfsdebug("node_get called\n");
+	mfsdebug("mfs_node_get()\n");
 
 	rc = mfs_instance_get(devmap_handle, &instance);
@@ -354,5 +357,5 @@
 
 	if (!ino_i)
-		return -1;
+		goto out_err;
 
 	ino_i->index = index;
@@ -431,8 +434,11 @@
 		d_info = read_directory_entry(mnode, i++);
 
-		if (!d_info)
+		if (!d_info) {
+			/*Reached the end of the dentries list*/
 			goto out;
+		}
 
 		if (d_info->d_inum) {
+			/*A valid entry has been found*/
 			*has_children = true;
 			free(d_info);
@@ -446,5 +452,5 @@
 
 	if (n_dentries > 2 && !*has_children)
-		printf(NAME ": Filesystem corruption detected");
+		printf(NAME ": Filesystem corruption detected\n");
 
 	if (*has_children)
@@ -485,4 +491,5 @@
 				mfs_version_t *version, bool *longfilenames)
 {
+	bool rc = false;
 	*longfilenames = false;
 
@@ -490,26 +497,26 @@
 		*native = magic == MFS_MAGIC_V1;
 		*version = MFS_VERSION_V1;
-		return true;
+		rc = true;
 	} else if (magic == MFS_MAGIC_V1L || magic == MFS_MAGIC_V1LR) {
 		*native = magic == MFS_MAGIC_V1L;
 		*version = MFS_VERSION_V1;
 		*longfilenames = true;
-		return true;
+		rc = true;
 	} else if (magic == MFS_MAGIC_V2 || magic == MFS_MAGIC_V2R) {
 		*native = magic == MFS_MAGIC_V2;
 		*version = MFS_VERSION_V2;
-		return true;
+		rc = true;
 	} else if (magic == MFS_MAGIC_V2L || magic == MFS_MAGIC_V2LR) {
 		*native = magic == MFS_MAGIC_V2L;
 		*version = MFS_VERSION_V2;
 		*longfilenames = true;
-		return true;
+		rc = true;
 	} else if (magic == MFS_MAGIC_V3 || magic == MFS_MAGIC_V3R) {
 		*native = magic == MFS_MAGIC_V3;
 		*version = MFS_VERSION_V3;
-		return true;
-	}
-
-	return false;
+		rc = true;
+	}
+
+	return rc;
 }
 
