Adds anaylseEntry as an angular service
Start to tease out the functionality from the analyseEntry method