restructure repository; remove some old shitty code