File structure sorted out and stl generated