adding some api calls for resizing
updating api to use interface
add loads of api methods