added sparsity penalty to RBM and corresponding updates.  Also added helper code for viewing weights before/after training