i140301

Bugs corrected. Adding instructions in README.