refactored sca to use shared utilities and be more testable
Merge pull request #146 from xrotwang/util

refactored sca to use shared utilities and be more testable