First release version.

Added counting logic and type casting in data 
structure assignments and reads.