add comments,fill inode struct, improve error handling