Removed unnecessary codes.
Made the end of trajectory thick.