Changed index to home, added hidden_file flag, bugfixes