Moved variable handling to separate class
Added Javadoc to VarHandler