Changed names of functions

Changed names of functions and variables to be more descriptive, changed default alignment to 'left alone', added documentation