functions changes & local variables added

1. changed the functions:
createFile(), openFile(), closeFile()
2. added three local variables
3. implemented insert entry(not complete)