Hi,
For the loans, please refer to:
Director's loans
For you buying out the other person, there is no capital gain or loss until you actually sell the shares or the company dissolves. For the other partner, as they are selling the shares, they would then have a gain or loss to declare.
Further guidance is at:
Tax when you sell shares
Thank you.