Backprogation and missing tests

Tests for backpropagating error + implementation of backpropagation
Tests for global error + implementation of global error calculation