Add flags property
Merge pull request #9 from nlegoff/flags

Add flags property