added few missing files and fixed viewer