Nice start! As -CALIBAN666- said, you will have to remove the ".txt" extension. This script changes your CPU frequency and governor.
In your script you will only need one
I suggest you to keep the Min. frequency at 312MHz or 156Mhz. Yes, keeping the Min. frequency at 832Mhz will improve your devices' performance at the cost of battery life.
echo "832000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "312000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "156000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
If you need help with scripts just PM me, I'll be happy to help.