Added base code for Randomized asgn. Minor fixes.