Updated pin definitions and added code to verify pin operations at runtime