Removed unused code.
Added building dist.