minor changes
move file functions to file.js, move text to README