Fixed an offset calculation bug, now including top and bottom border widths of parent elements, and added some more documentation to the README