Fixed a few bugs.
Added sample files.