updated hipsr writing scripts

Signed-off-by: Danny Price <dan@thetelegraphic.com>