Bug fixes. Added prepare.sh file.