Fix rectangle position calculation with borders
Fix mouse callback being called twice
Better code formatting
Better docs, less noise
Fix border calculation
Ahhh, much better docs