Added templates and constants for easy referencing. all thats left to
do is work out equation algorithms