fix state space size bug
modify algorithm to use DISCHARGE_PRIME_CAUSE
Merge pull request #12 from ryysd/fix_conversion_bug

Fix conversion bug