added port_type parameter to port events
fixed a problem in storing alarm state
skipped port polling if card is not present
trivial change
more efficient alarm detection
added a test on SeltaCard
changed some events