Error handling and More dll arg types

I started adding some of the error handling for each of the class
methods. Also added more of the arg types for the dll function calls.