Fixed bugs in Rectangle; added aliases; added tests.