Add readme. Fix some inaccuracies in code