Splitted into some functions
Edited some functions, changed userhelper a bit
Edited some functions
Edited select a bit
commit before big changes
Splitting into several functions works rather fine