Make some functions and comments
Make some functions and comments

Move some procedure to function.
-format query
Add some comments to describe procedure
Add some comments (to implement later)
-emphasize some characters
-redirect

sedenowa/hain-plugin-filepath