implement new file
addressed comments
Merge pull request #349 from dart-lang/newfile

implement new file