Make options use files, add initial functionality for tile weights (unused so far)