Reslice class style code. Bugs fixed. Unused method removed