Add public flag checking
Merge pull request #68 from strongloop/public-flag

Add public flag checking