Fixed upc_memget issue regarding initial seed, cleaned code a bit