Implemented the super class position and fixed some small bugs.