refactored color codes, now local variables
added preliminary support for root users
fixed bug: return was always executed
refactored code