Added 3D library
WIP
Fixed 3D