Added error handling, updated nuget package