Fixed inline comment LOC bug and moved print functions