Writing works

Also added rand.asm for fun.