Implemented shift functions
Also fixed stright size-position function parameters
Some fixes