Made some functions to inlined

#331 #332 #333 #334 #335 #336 #337 #338 #339 #340 #342 #343 #344 #345 #346 #347 #348 #349 #350 #351 #352 #353 #354