Added work done since 29-11-2014

Everything in this commit is by @Tron93
Added review comments to the code
Added missing array tasks
Some refactoring
More refactoring in arrays