Worked a bit on reproducing some examples.

Also added some various learning tests (on data types, overflow etc.)