Added access spec to class vars, logic to singleton

Added private specifier to logic, input, output.
Logic is a singleton, so logic variable calls static Logic.getLogic() function.