many fixes, work in progress, created build.sh