Added helper scripts for common tasks and fixed a few bugs