fixed build scripts and added usage instructions