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

Fix RBM backprop.
Merge branch 'master' into parallel-batches

Conflicts:
	src/RBM.cpp