Added index and test files, began function