Many bugs fixed + global integration :3

M-am distrat.