Electronic structure and properties of YBa2Cu4O8