experimental automatic structure calculation

experimental first version of structure calculation