added matrix layout for compounds; a little nicer rendering