Fixed several bugs. rotate() to be implemented.