Login function created
Moved login function to inat.php, unified login function used globally
Misc. documentation added