Add script for travis. Also fix some unitialized reads.