finished up sample project

Added isValid() implementation to tag and some other small changes