Added index and separated module into own file