minor updates
fixed issues with long type, set output pin modes