Added pin control
Updated examples