Merge pull request #6 from EJEHardenberg/feature/integration

Removed bad assertion tests, fixed type checking for pins error
refactored for cleaner code and fewer function calls