Final version of ANN with feedback on the hidden layer
1. Added more comments
2. Removed redundant functions