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