added comments and worked on file importing