moved index into public and fixed server to actually serve files