Added various things

Conditional expressions, toreal/toint, read, indexing, fielding.
Also fixed some bugs.