Completed neuarl network implementation