Prime number detection was faulty. Changed i-- to i++
Merge branch 'version0.1_debug_toolsPrime' into version0.1_debug
Merge branch 'version0.1_debug' into version0.1

* tools.cpp: The prime number detection function isPrime () had a flaw in the code, which has now been rectified.