Set loaded flag to prevent multiple loads
Merge pull request #4 from jbernard/master

Add loaded flag variable