Added building thread
modified export function (ToString now)