Refactor

* Refactored code to remove redundant calls.
* Split into various files to improve readability.
* Added H-Bridge datasheet