Edited Wrapper

Added in declarations and fixed previous for flips/rotate