Added a little documentation and some variables