Added comments. Fixed interface.