Build system up.
Added distribution script.
More work on build system. Should be OK now.