Add 'static' keyword to static functions.
Fix hasChildren() check.
Fix query parameters.
Re-arrange files and directories.