added license headers, fixed compiler warnings
beautified UI