Fixed wrong $this usage, Removed php closing tag

Thank you for this tool. Just provided some fixes.
Merge pull request #1 from Wolg/patch-1

Fixed mis-typed $his instead of $this.