Removed outdated primitives.
Added compare primitive.
Rewrote prelude.
Updated docs and sample programs.