several bug fixes -- command arguments now implemented