- cleaned *Set* functions - added initial code for 3d buffer recalculating - added some auxiliary functions