all API that deals with keys now has key_size parameter

closes #17