fix these goddamn tabs you magnificent bastard. cleaned up the code in general. more details comments to be added later.