fix bug in code1, add README, add code2 module with a few tests