Renamed function, reworked pin read function, added switch stick functionality