Fixed one bug, tested network integrity by comparing output with MATLAB with same coeffcients