Updated so that code was more generic - previous version had incorrect URLs in it

Signed-off-by: Matthew Rayner <matt@mattrayner.co.uk>