Initial commit with checkgrad and forwardpropagate