Added buildscript and fixed installation

(Requires #4)