Command line usage added. Bugs fixed.