styling, correct renaming and added unit test for position