Cleaned gpio and added documentation. Added copyright notices and corrected spelling errors.