Added pinstate tab, changed Pin class constructor