Toscalib

Interim code checkpoint.
Added specific exceptions.