Adding main

Sorry, this was done locally like ages ago O_o Forgot to commit.