Separating calamp parsing into library for modularity