Add project skeleton. Fix a few basic issues.