Lots of random changes, oops :P
- Code analysis - removed "this" qualifier where not needed
- Made layers integers instead of floating point numbers
- Messed around with test classes a bit