refactored neural into layer. Working on hierarchicalsoftmax and parallel.