Fixed many bugs and updated example and README. Now example works fine again.