changed build script to accept static build
fixed static app
reindent