Added LibcError and Directory class.
First tests for OptParser. Few other tests and changes.