Redefined spec
Changed struct.js according to spec
Changed readme according to functionality