Fixed #4

Add license file
Fixed #5

I change '{[' tags to '{{' for compatibility.
Fixed #5

fix bug with sorting
add more examples