add some checks to API functions, change default borderPadding 24 -> 16
update API tests
update docs