renamed var for clarity
added functions to allocate and free page frames