You should not modify mojoPortal source code at all. As soon as you do that you block yourself from future upgrades because if you upgrade you will lose customizations. You should implement all customizations in external projects or files and never modify mojoPortal source code. I recommend people to use the source code because it is a good way to learn how to do things and there are many examples of most common types of tasks where you can get example code. But if you just start hacking away at the mojoPortal code you are on the wrong path and I cannot help you.
If you don't modify the mojoPortal code you can always get my latest changes and you will want my changes so you need to avoid forking the code.