Cleaning up, adding documentation

refactoring to remove useless commands,
clean up code and rearrange in a more logical, standard order (globals,
functions, main code, etc)
and documenting
updated bl_info dict

updated meta-data