First implementation of boundary layer unwrapping. Working but not optimal.