Calculate gradient for bias.
Clean up example.
Merge pull request #77 from AlexanderFabisch/master

Fix RBM backprop.