Refactor functions and constants
refactor to have all constants and functions related stuff into one place, so no duplicate is done. Implement comparsions Previously it was a mess to implement new functions, because everything was index based and therefore really error prone. Now this cannot happen anymore
Edited by Martin Marmsoler