Refactoring; main functionality works and is applied for BW.Offshore and for Resource Editro
Still have issues with formatting