Added README and fixed some bugs
Added view example