Fix NPE in Methods

http://pastebin.com/9J0qAWTh
Fix another NPE in Methods

http://pastebin.com/sqiqfjin
Fix attempt NPE in Methods

http://pastie.org/9383324
Removed "this" keyword for static access
Moved an If check under its element
Merge pull request #4 from jacklin213/master

Fixed NPE's in Method and small edits to other classes