Added rising-falling determination for IR sensor interrupt. Closes #2, ready for merge with 'develop' branch.