First fully compiling version!

Seems to have some odd memory issues though.