Added better type enforcment
Added general Key, Type, and Value error handlers