fd rnns revamped
fixed test for linear
merged