Put code into standard format

added inline keyword to methods