Adding $app variable to register
Merge pull request #6 from lelotnk/patch-1

Adding $app variable to register