listing files; fixed bugs