Update grid

-- Bring back grid caculations for the current wiring
-- Move validation of input values to the socket handler itself
-- Misc bug fixes