bug fixes and style improvements

Fixed the bug of one node showing by making ajax sychronous. Deleted
unessessary files. Some style improvements.