Fixed the multiple instances-bug, added resetting element on window scrolling, plus multiple other fixes