Fixed several bugs.

Added verbose option.

Added Linux build.