I was tired last night so i did things

This was all coded when i was half asleep, expect it to crash and burn
the earth.