Added damage size selector, improved nurmerical integration,fixed quality factor equation