Bug fixes. Added perspective mode.