Refactored pin assignment and setup(). Added license info.