support degrees and lg
Merge pull request #23 from mkotov/master

support degrees and lg