Started implement function for dragging rectangles, not finish. Wrote comments for some methods.

Signed-off-by: Johan Fredriksson <johanfredriksson1987@gmail.com>