added ability to xfer milestones. Changed the structure to match existing coding style