Merge pull request #3 from datanium/master

pull code
Merge pull request #4 from datanium/master

pull code for perl
Merge pull request #5 from datanium/master

merge
add measure count validation
Merge pull request #36 from tonymouse/master

add measure count validation