Added much more comments and fixed a warning
Added missing comments! FINISHED! FINALLY!