added integer type. small fixies for the api