Added templates, core functionality and a custom function for testing ip ranges