fixed compiler warnings
added IDEA settings.