Added equations to method section and reworked the text.