Merge pull request #1 from nightsh/master

Sampling before sleep(), so it will begin with the adjustments
Merge pull request #2 from nightsh/master

More fixes
Merge pull request #3 from nightsh/master

Tested argv length
Add preliminary command line argument support
Merge pull request #1 from Odd0002/master

Add preliminary command line argument support