added keyset printer
fixed null check for size and curve parameters