Added bag making helper function. Added ability to specify precomputed kernel. Updated documentation accordingly. Fixed some bugs.