Add new attribute inference

Fixes #12
Merge pull request #19 from jacebrowning/new-in-file

Add new attribute inference