Minor bug fix, completely separated id and actions validation, removed unused and useless functions, fixed functions and their calls via test, some pointless comments removed too