Initial code commit

A LOT of weird code