Misc code beautification + adding gpio class