Path begin/close

Fixed paths, moved nemlist fill out of for loop.