added possibility for prisms; Better comments;