Add basic exceptions
Fix dereferencing of method results