Fixed build.sh
Distributed GUI bindings into functions