add license.

adopt the modified BSD License (3-clause).
ignore temporary files