added floor to rect calculation to enforce pixel alignment of the views, updated readme with a description of the algorithm