Refactor

Added grunt and breaking code into separate files.
Added PHelper and PVariables.