Refactor and Includes

- Refactored the checks in to separate method
- Updated C File for a second function
Updated README