fixed bug in weight sampling. Added code to properly initialize from MAP estimate under a standard GLM.