added gif demo, licence and some code updates