Fixed initialization bugs, and updated readme