Moved source to src.

Added tests.