added getters, compiler warnings
added getters
formatting