Adding lua library for debugging, minor polish on scripts view